import {defineStore} from "pinia";

/**
 * 租户store
 */
export const userStore = defineStore('user', {
    state: () => ({
        userInsertOpen: false,
        updateUserId: 0,
        openUpload: false
    }),
    actions: {
        setUserInsertOpen(value: boolean) {
            this.userInsertOpen = value
        },
        setUpdateUserId(value: number) {
            this.updateUserId = value
        },
        setOpenUpload(value: boolean) {
            this.openUpload = value
        }
    }, getters: {}
})